package com.ftg.learn.course.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ftg.learn.course.dto.QueryDto;
import com.ftg.learn.course.entity.Course;
import com.ftg.learn.course.result.PageResult;
import com.ftg.learn.course.result.Result;

public interface CourseService extends IService<Course> {
    Result<PageResult> getPage(QueryDto queryDto);

    Result<Course> MygetOne(Long id);

    Result<String> add(Course course);

    Result<String> myupdate(Course course);
}
